package top.withwings.bonus.common.pojo;

import java.util.Date;

public class Token {

    String uuid;
    User user;
    Date exp;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getExp() {
        return exp;
    }

    public void setExp(Date exp) {
        this.exp = exp;
    }

    public boolean isExpired() {
        return this.getExp().before(new Date());
    }
}
